@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';
* {
    padding: 0;
    margin: 0;
}
.router-link-active {
  background: #3a8ee6;
}
.app-main {
  margin-top: 106px;
  /*50 = navbar  */
  height: calc(100vh - 113px);
  width: 100%;
  position: relative;
  /* overflow: hidden; */
  background-color: #f1f1f1;
}
body {
    // height: 100%;
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
    font-weight: 700;
}

html {
    height: 100%;
    box-sizing: border-box;
}

#app {
    height: 100%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

a:focus,
a:active {
    outline: none;
}

a,
a:focus,
a:hover {
    cursor: pointer;
    color: inherit;
    text-decoration: none;
}

div:focus {
    outline: none;
}

.clearfix {
    &:after {
        visibility: hidden;
        display: block;
        font-size: 0;
        content: " ";
        clear: both;
        height: 0;
    }
}

// main-container global css
.app-container {
    padding: 20px;
}


/*-------------------------------自定义样式--------------------------------------*/

body .el-table th.gutter {
    display: table-cell!important;
}

body .el-table colgroup.gutter {
    display: table-cell!important;
}

.el-table .warning-row {
    background: oldlace;
}

.el-table .success-row {
    background: #f0f9eb;
}

.content_show {
    margin-left: 1%;
    margin-right: 2%;
    background-color: #fff;
    border-radius: 10px;
    padding: 5px 15px 15px 15px;
    margin-bottom: 1rem;
}

.date_title {
    font-size: 0.9rem;
    line-height: 35px;
}

.date_wrap {
    .button_wrap {
        text-align: right;
        margin-bottom: 0.3rem;
    }
}

.down_wrap {
    height: 35px;
    width: 35px;
    background-color: #3f9eff;
    font-size: 25px;
    display: inline-block;
    vertical-align: middle;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    margin-left: 5px;
    cursor: pointer;
}

.header_all {
    position: fixed;
    top: 0px;
    width: 100%;
    z-index: 999;
    height: 61px;
    /* padding: 0 50px; */
    line-height: 60px;
    background: #33a0e5;
    text-align: left;
    padding-left: 25px;
    font-size: 1.6rem;
    color: white;
    font-weight: 500;
    border-bottom: 1px solid #dedede;
}

.el-table td,
.el-table th {
    padding: 2px 0;
    min-width: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    text-overflow: ellipsis;
    vertical-align: middle;
    position: relative;
    text-align: left;
}

.el-dialog__body {
    padding: 15px 20px;
    color: #606266;
    font-size: 14px;
}

.el-table__footer-wrapper tbody td,
.el-table__header-wrapper tbody td {
    background-color: rgb(242, 242, 242);
    color: #4ea9ff;
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
}

.el-table__fixed-footer-wrapper tbody td {
    background-color: rgb(242, 242, 242);
    color: #4ea9ff;
    text-align: center;
    font-weight: 500;
    font-size: 1rem;
}

.el-form-item__error {
    color: #F56C6C;
    font-size: 12px;
    line-height: 1;
    padding-top: 4px;
    position: absolute;
    left: 28px !important;
    top: 45px;
}

.svg-icon {
    width: 1.2em;
    height: 1.2em;
    vertical-align: -0.15em;
    fill: currentColor;
    overflow: hidden;
    font-size: 1.2rem;
}

.choose_wrap {
    padding: 16px 0px 16px 20px;
}

.el-button--medium.is-round {
    padding: 10px 25px;
}

.button_wrap {
    display: inline-block;
    float: right;
    padding-right: 30px;
}

::-webkit-scrollbar {
    width: 6px;
    height: 15px;
    border-radius: 5px;
    /* background:rgba(144,147,153,0.5);  */
}

 ::-webkit-scrollbar-button {
    display: none;
}

 ::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: rgba(8, 101, 140, 0.9);
   height: 10px;
    // background: red;
}

 ::-webkit-scrollbar-track {
    border-radius: 5px;
    /* background:rgba(144,147,153,0.5);  */
}

.el-table--border td,
.el-table--border th,
.el-table__body-wrapper .el-table--border.is-scrolling-left~.el-table__fixed {
    border-right: 1px solid #a2a4a9;
}

.el-table td,
.el-table th.is-leaf {
    border-bottom: 1px solid #a2a4a9;
}

* {
    font-size: 15px;
    /* color:#5f6266 */
}

.el-avatar,
.el-drawer {
    -webkit-box-sizing: border-box;
    overflow: auto
}

.el-tree-node__label {
    font-size: 14px;
    overflow-y: auto;
    // overflow-x: scroll;
    height: 95%;
    width: 300px;
    overflow: hidden;
    // border: 1px solid #e8e8e8;
    text-overflow: ellipsis
}

.el-switch__label--left {
    position: relative;
    left: 60px;
    color: #fff;
    z-index: -1111;
}

.el-switch__label--right {
    position: relative;
    right: 60px;
    color: #fff;
    z-index: -1111;
}

.el-switch__label--right.is-active {
    z-index: 1111;
    color: #fff !important;
}

.el-switch__label--left.is-active {
    z-index: 1111;
    color: #fff !important;
}

.el-menu.el-menu--horizontal {
    border-bottom: solid 1px #bdb8b8;
}

#fm-container .el-form-item__content {
    line-height: 40px;
    position: relative;
    font-size: 14px;


}

.el-table__row {
    cursor: pointer;
}

.el-tree-node__label {
    font-size: 14px;
    overflow-y: auto;
    height: 95%;
    width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 24px;
}

#user_wrap .el-dialog {
    margin-top: 4vh!important;
    overflow-y: auto;
}

.el-table__body tr.current-row>td {
    background-color: yellow !important;
}

.el-breadcrumb__inner a:hover,
.el-breadcrumb__inner.is-link:hover {
    color: black;
    cursor: text;
}

.el-button--mini,
.el-button--mini.is-round {
    //padding: 5px 15px;
}

#gggsDialog .el-dialog {
    margin-top: 4vh!important;
    height: calc(95vh);
    overflow-y: auto;
}

.tox-silver-sink {
    z-index: 3000 !important;
}

//.el-popover {
//    position: absolute;
//    background: #FFF;
//    min-width: 150px;
//    border: 1px solid #EBEEF5;
//    padding: 12px;
//    z-index: 2000;
//    color: #606266;
//    line-height: 1.4;
//    text-align: justify;
//    font-size: 14px;
//    -webkit-box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
//    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
//    word-break: break-all;
//}
.el-table--striped .el-table__body tr.el-table__row--striped td {
    background: #e2e2e2!important;
}

.el-table__footer-wrapper tbody td,
.el-table__header-wrapper tbody td {
    background-color: #f2f2f2;
    color: #4ea9ff;
    text-align: right!important;
    font-weight: 500;
    font-size: 1rem;
}

#printInfo .el-dialog {
    margin-top: 4vh!important;
    overflow-y: auto;
}

//.el-submenu .el-menu-item {
//    height: 50px;
//    line-height: 50px;
//    padding: 0 45px;
//    padding-left: 22px!important;
//    min-width: 200px;
//}
#chooseWrap .el-dialog {
    margin-top: 4vh!important;
    height: calc(93vh);
    overflow-y: auto;
}


#graphicalTable .el-table td,
#graphicalTable .el-table th {
    font-size: 16px;
    font-weight: 500;
    padding: 3px 0 !important;
    min-width: 0;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    text-overflow: ellipsis;
    vertical-align: middle;
    position: relative;
    text-align: left;
}

#graphicalTable .el-table--striped .el-table__body tr.el-table__row--striped td {
    background: #efefef;
}

#graphicalTable .el-table .cell.el-tooltip {
    white-space: nowrap;
    min-width: 50px;
    text-align: center;
}

#graphicalTable .el-table--enable-row-hover .el-table__body tr:hover>td {
    background-color: rgba(253, 191, 76, 0.863) !important;
    cursor: pointer
}

$primary-color: #409EFF;
$primary-background-color: #ecf5ff;

*, :after, :before {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

.fa-icon{
  width: auto;
  height: 1em; /* 或任意其它字体大小相对值 */

  /* 要在 Safari 中正常工作，需要再引入如下两行代码 */
  max-width: 100%;
  max-height: 100%;
  vertical-align: middle;
}

.fm2-container{
  background: #fff;
  height: 100%;
  border: 1px solid #e0e0e0;

  .el-container{
    height: 100% !important;
  }

  &>.el-container{
    background: #fff;
  }
  .fm2-main{
    position: relative;

    &>.el-container{
      position: absolute;
      top: 0;
      bottom: 0;
      left: 0;
      right: 0;
    }
  }
  main{
    padding: 0;
  }

  footer{
    height: 30px;
    line-height: 30px;
    border-top: 1px solid #e0e0e0;
    font-size: 12px;
    text-align: right;
    color: $primary-color;
    background: #fafafa;

    a{
      color: $primary-color;
    }
  }
}

.center-container{
  border-left: 1px solid #e0e0e0;
  border-right: 1px solid #e0e0e0;

  .btn-bar{
    height: 45px;
    line-height: 45px;
    font-size: 18px;
    border-bottom: solid 2px #e4e7ed;
    text-align: right;
  }

  .el-main{
    padding: 0;
    position: relative;
    background: #fafafa;
  }
}

.components-list{
  padding: 8px 0;
  width: 100%;
  height: 100%;

  .widget-cate{
    padding: 8px 12px;
    font-size: 15px;
  }

  ul{
    position: relative;
    overflow: hidden;
    padding: 0 10px 10px;
    margin: 0;
  }

  .form-edit-widget-label{
    font-size: 12px;
    display: block;
    width: 48%;
    line-height: 26px;
    position: relative;
    float: left;
    left: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin: 1%;
    color: #333;
    border: 1px solid #F4F6FC;
    text-align: center;

    &:hover{
      color: $primary-color;
      border: 1px dashed $primary-color;
    }

    &>a{
      display: block;
      cursor: move;
      background: #F4F6FC;
      border: 1px solid #F4F6FC;

      .icon{
        margin-right: 6px;
        margin-left: 8px;
        font-size: 14px;
        display: inline-block;
        vertical-align: middle;
      }

      span{
        display: inline-block;
        vertical-align: middle;
        font-size: 13px;
      }
    }
  }
}

.widget-form-container{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;



  .widget-form-list{
    background: #fff;
    // border: 1px dashed #999;
    border: 1px dashed #999;
    min-height: calc(77vh);
    margin: 10px;

    .widget-col-list{
      min-height: 50px;
      border: 1px dashed #ccc;
      background: #fff;
    }

    .widget-view{
      padding-bottom: 18px;
      position: relative;

      background-color: rgba(236, 245, 255, .3);
      margin: 2px;

      .el-form-item__content{
        position: unset;

      }

      &.is_req{
        .el-form-item__label::before{
          content: '*';
          color: #f56c6c;
          margin-right: 4px;
        }
      }

      .widget-view-description{
        height: 15px;
        line-height: 15px;
        font-size:13px;
        margin-top: 6px;
        color:#909399;
      }

      .widget-view-action{
        position: absolute;
        right: 0px;
        bottom: 0px;
        height: 28px;
        line-height: 36px;
        background: #409EFF;
        z-index: 9;

        i{
          font-size: 14px;
          color: #fff;
          margin: 0 5px;
          cursor: pointer;

        }
      }

      .widget-view-drag{
        position: absolute;
        left: -2px;
        top: -2px;
        bottom: -10px;
        height: 28px;
        line-height: 28px;
        background: $primary-color;
        z-index: 9;
        // display: none;

        i{
          font-size: 14px;
          color: #fff;
          margin: 0 5px;
          cursor: move;
        }
      }

      &:after{
        position: absolute;
        left: 0;
        right: 0;
        top: 0;
        bottom: 0;
        display: block;
      }

      &:hover{
        background: $primary-background-color;
        outline: 1px solid $primary-color;
        outline-offset: 0px;

        &.active{
          outline: 2px solid $primary-color;
          border: 1px solid $primary-color;
          outline-offset: 0;
        }

        .widget-view-drag{
          display: block;
        }
      }

      &.active{
        outline: 2px solid $primary-color;
        border: 1px solid $primary-color;
      }

      &.ghost{
        background: #F56C6C;
        border: 2px solid #F56C6C;
        outline-width: 0;
        height: 3px;
        box-sizing: border-box;
        font-size: 0;
        content: '';
        overflow: hidden;
        padding: 0;
      }
    }

    .widget-table{
      padding-bottom: 0;
      padding: 5px;
      background-color: rgba(253,246,236, .3);

      .widget-table-wrapper{
        min-height: 50px;
        background: #fff;
        display: flex;
        justify-content: flex-start;

        .widget-table-row{
          td{
            border-bottom: 0;
          }
        }

        .widget-table-left{
          width: 51px;
          border-left: 1px solid #EBEEF5;
          border-right: 1px solid #EBEEF5;
          border-top: 1px solid #EBEEF5;
          flex: none;
        }

        .widget-table-view{
          border: 1px solid #EBEEF5;
          width: 200px;
          float: left;
          height: 100%;
          position: relative;
          display: block;

          .el-table{
            height: 100%;
          }

          &.is_req{
            .el-form-item__label::before{
              content: '*';
              color: #f56c6c;
              margin-right: 4px;
            }
          }

          .widget-view-description{
            height: 15px;
            line-height: 15px;
            font-size:13px;
            margin-top: 6px;
            color:#909399;
          }

          .widget-view-action{
            position: absolute;
            right: 0;
            bottom: 0;
            height: 28px;
            line-height: 28px;
            background: $primary-color;
            z-index: 9;

            i{
              font-size: 14px;
              color: #fff;
              margin: 0 5px;
              cursor: pointer;

            }
          }

          .widget-view-drag{
            position: absolute;
            left: -2px;
            top: -2px;
            bottom: -18px;
            height: 28px;
            line-height: 28px;
            background: $primary-color;
            z-index: 9;
            // display: none;

            i{
              font-size: 14px;
              color: #fff;
              margin: 0 5px;
              cursor: move;
            }
          }

          &::after{
            position: absolute;
            left: 0;
            right: 0;
            top: 0;
            bottom: 0;
            display: block;
            content: '';
          }

          &::before{
            display: none;
          }

          &:hover{
            background: $primary-background-color;
            outline: 1px solid $primary-color;
            outline-offset: -1px;

            &.active{
              // outline: 1px solid $primary-color;
              border: 1px solid $primary-color;
              outline: 1px solid $primary-color;
              outline-offset: -1px;
            }

            .widget-view-drag{
              display: block;
            }
          }

          &.active{
            outline: 1px solid $primary-color;
            border: 1px solid $primary-color;
            outline-offset: -1px;
          }

          &.ghost{
            background: #F56C6C;
            outline-width: 0;
            width: 5px !important;
            box-sizing: border-box;
            font-size: 0;
            content: '';
            overflow: hidden;
            padding: 0;
            position: relative;
            outline: none !important;
            border: 0 !important;

            &::after{
              background: #F56C6C;
              position: absolute;
              top: 0;
              left: 0;
              bottom: 0;
              right: 0;
              z-index: 9999;
              content: '';
              outline: none;
            }
          }
        }

        .widget-table-content{
          width:100%;
          // border: 1px dashed #ccc;
          outline: 1px dashed #ccc;
          background: #fff;
          flex:1;
          margin: 0 1px;
          overflow: auto;

          &>div{
            height: 100%;
          }

          .widget-table-col{
            height: 100%;

            .ghost{
              background: #F56C6C;
              // border: 2px solid #F56C6C;
              position: relative;
              content: '';
              float: left;
              height: 100%;
              width: 5px !important;
              list-style: none;
              font-size: 0;
              overflow: hidden;
              outline: none;

              &::after{
                background: #F56C6C;
                position: absolute;
                top: 0;
                left: 0;
                bottom: 0;
                right: 0;
                z-index: 9999;
                content: '';
                outline: none;
              }
            }
          }
        }
      }

      &.active{
        outline: 2px solid #e6a23c;
        border: 1px solid #e6a23c;
      }

      &:hover{
        background: #fdf6ec;
        outline: 1px solid #e6a23c;
        outline-offset: 0px;

        &.active{
          outline: 2px solid #e6a23c;
          border: 1px solid #e6a23c;
          outline-offset: 0;
        }
      }

      .widget-view-action.widget-col-action{
        background: #e6a23c;
      }

      .widget-view-drag.widget-col-drag{
        background: #e6a23c;
      }

      &::after{
        display: none;
      }

      &.ghost{
        background: #F56C6C;
        outline-width: 0;
        height: 5px;
        box-sizing: border-box;
        font-size: 0;
        content: '';
        overflow: hidden;
        padding: 0;
        position: relative;
        outline: none;
        border: 0;

        &::after{
          background: #F56C6C;
          position: absolute;
          top:0;
          left: 0;
          right: 0;
          bottom: 0;
          content: '';
          display: block;
          z-index: 999;
        }
      }
    }

    .widget-col{
      padding-bottom: 0;
      padding: 5px;
      // margin-left: 2px !important;
      // margin-right: 2px !important;
      background-color: rgba(253,246,236, .3);

      &.active{
        outline: 2px solid #e6a23c;
        border: 1px solid #e6a23c;
      }

      &:hover{
        background: #fdf6ec;
        outline: 1px solid #e6a23c;
        outline-offset: 0px;

        &.active{
          outline: 2px solid #e6a23c;
          border: 1px solid #e6a23c;
          outline-offset: 0;
        }
      }

      .el-col{
        min-height: 50px;
      }

      &.ghost{
        background: #F56C6C;
        border: 2px solid #F56C6C;
        outline-width: 0;
        height: 3px;
        box-sizing: border-box;
        font-size: 0;
        content: '';
        overflow: hidden;
        padding: 0;
      }

      .widget-view-action.widget-col-action{
        background: #e6a23c;
      }

      .widget-view-drag.widget-col-drag{
        background: #e6a23c;
      }

      &::after{
        display: none;
      }
    }

    .ghost{
      background: #F56C6C;
      border: 2px solid #F56C6C;
      outline-width: 0;
      height: 3px;
      box-sizing: border-box;
      font-size: 0;
      content: '';
      overflow: hidden;
      padding: 0;
    }
  }

  .ghost{
    background: #F56C6C;
    border: 2px solid #F56C6C;
    position: relative;

    &::after{
      background: #F56C6C;
    }
  }

  li.ghost{
    height: 5px;
    list-style: none;
    font-size: 0;
    overflow: hidden;
  }

  .widget-grid{
    background: #F4F6FC;
    position: relative;
    border-left: 5px solid transparent;
    padding: 5px;
    margin: 0 !important;

    &.active{
      border-left: 5px solid $primary-color;
      background: #b3d8ff;
    }
  }

  .widget-grid-container{
    &.ghost{
      background: #F56C6C;
      border: 2px solid #F56C6C;
      outline-width: 0;
      height: 3px;
      box-sizing: border-box;
      font-size: 0;
      content: '';
      overflow: hidden;
      padding: 0;
    }
  }

  .ghost{
    background: #F56C6C;
    border: 2px solid #F56C6C;
    position: relative;

    &::after{
      background: #F56C6C;
    }
  }

  li.ghost{
    height: 5px;
    list-style: none;
    font-size: 0;
    overflow: hidden;
  }
}

.widget-config-container{
  position: relative;

  .el-header{
    border-bottom: solid 2px #e4e7ed;
    padding: 0 5px;
  }

  .config-tab{
    height: 45px;
    line-height: 45px;
    display: inline-block;
    width: 210px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    cursor: pointer;

    &.active{
      border-bottom: solid 2px $primary-color;
    }
  }

  .config-content{
    padding: 10px;

    .el-form-item__label{
      padding: 0;
      font-weight: 500;

    }

    .el-form-item {
      border-bottom: solid 1px #e1e1e1;
      padding-bottom: 10px;
    }
  }

  .ghost{
    background: #fff;
    border: 1px dashed $primary-color;

    &::after{
      background: #fff;
      display: block;
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
    }
  }

  ul{
    margin: 0;
    padding: 0;
  }

  li.ghost{
    list-style: none;
    font-size: 0;
    display: block;
    position: relative;
  }
}

.viewer-container{
  z-index: 99999 !important;
}

.form-empty{
  position: absolute;
  text-align: center;
  width: 300px;
  font-size: 20px;
  top: 200px;
  left: 50%;
  margin-left: -150px;
  color: #ccc;
}

#cusDialog .el-dialog{
  margin-top: 2vh!important;
  overflow-y: auto;
  height: calc(98vh)!important;
}
#cusDialog .el-dialog__body{
  height: 80%!important;
}

#cusDialog .el-form-item__content {
  line-height: 40px;
  position: relative;
  font-size: 14px;


}



